macos: fix window activation during shadow click-through
authorChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 01:26:56 +0000 (17:26 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 22:44:07 +0000 (14:44 -0800)
commit407b5246a6121406f661daef95ac64c674e440bd
tree6f7947b4904585fa1d948a31a75dbc93c3f9eb36
parent6bedcf22bc0e6dda80af333b3976786c05c48393
macos: fix window activation during shadow click-through

If we are clicking through the shadow of a window, we need to take special
care to not raise the old window on mouseUp. This is normally done by the
display server for us, so we need to use the proper API that is public to
handle this (rather than CGSSetWindowTags()). Doing so requires us to
dispatch the event to the NSView and then cancel the activcation from
the mouseDown: event there.
gdk/macos/GdkMacosView.c
gdk/macos/GdkMacosWindow.c
gdk/macos/GdkMacosWindow.h
gdk/macos/gdkmacosdisplay-translate.c